<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>虚拟dom</title>
</head>
<body>
  <div id="app">
    {{message}}
  </div>
  <script src="./vue.min.js">
  </script>
  <script>
    const vm =  new Vue({
      el: "#app",
      data: {
        message: "Hello Vue!"
      },
      render(h) {
        // h函数的参数 h(type: string | Component,props: Object | null,children: string | Array<VNode>)
        return h('div', {
        },'你好')
      }
    })
    console.log('vm',vm)
  </script>
</body>
</html>